﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace ConsoleApplication3.QueryProviders
{
    /// <summary>
    /// Provides a custom queryable hierarchy that represents parent-child relationships, although the
    /// structure most likely will not be maintained on the server in memory.  The primary and 
    /// foreign key relationshps are specified as metadata (i.e. lambda expressions, xpath, urls, or named paths)
    /// that provide the means for recreation of the object graph from the root down to the 
    /// nodes being queried.  An example usage would be for the server file system.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public abstract class PathTraceableHierarchy<T> : IOrderedQueryable<T>, IQueryProvider
    {
        private readonly Expression queryExpression;

        #region IQueryable Members

        public Type ElementType
        {
            get { return typeof(T); }
        }

        public System.Linq.Expressions.Expression Expression
        {
            get { throw new NotImplementedException(); }
        }

        public IQueryProvider Provider
        {
            get { throw new NotImplementedException(); }
        }

        #endregion
        #region IQueryProvider Members

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="TElement"></typeparam>
        /// <param name="expression"></param>
        /// <returns></returns>
        public IQueryable<TElement> CreateQuery<TElement>(System.Linq.Expressions.Expression expression)
        {
            throw new NotImplementedException();
        }

        public IQueryable CreateQuery(System.Linq.Expressions.Expression expression)
        {
            throw new NotImplementedException();
        }

        public TResult Execute<TResult>(System.Linq.Expressions.Expression expression)
        {
            throw new NotImplementedException();
        }

        public object Execute(System.Linq.Expressions.Expression expression)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IEnumerable<T> Members

        public IEnumerator<T> GetEnumerator()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IEnumerable Members

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
